package com.Semaphore;

import java.util.concurrent.Semaphore;

/**
 * Created by apple on 17/9/29.
 */
public class ApplicationStart {
    public static void main(String[] args) {
        int N = 8;//工人数
        Semaphore sm = new Semaphore(5);//机器数
        for (int i = 0; i < N; i++) {
            new Task(i,sm).start();
        }
    }
}
